<section id="main" class="column">
             <?php
            if($this->result == "true"){
                  print "<h4 class='alert_success'>De booking is succesvol bewerkt</h4>";
            }
            print $this->message;
            ?>
            <article class="module width_full" style="width: 100%;" \>
            	  <header><h3>Ruimte Reserveren</h3></header>
            	<div class="module_content">
           			<fieldset>
                		<p>Op deze pagina is het mogelijk om een reservering te bevestigen of te weigeren.</p>
               		</fieldset>
              </div>
             </article>

              <article class="module width_half booking" style="float:left;">
            	<header><h3>Openstaande reserveringen</h3></header>
                <ul>
                <?php
                foreach ($this->bookings as $booking) {
                  if($booking->accepted == "0"){
                    $client = mysql_fetch_object(mysql_query("SELECT * FROM client WHERE id = '".$booking->client_id."'"));
                    print "<li><p>" . $client->name . "       " . $booking->partofday . "      " . $booking->date ."<a href='" . $this->baseUrl() . "/administrator/bookings?accepted=" .$booking->id ."'>     Accepteren</a><a href='mailto:" . $client->email . "'>          Email</a><a href='" . $this->baseUrl() . "/administrator/viewbooking?id=" . $booking->id ."'>                    Bekijk</a></p></li>";   
                  }
                }
                ?>
              </ul>
              </article>
              
              <article class="module width_half booking" style="float: left;">
               	<header><h3>Bevestigde reserveringen</h3></header>
                  <ul>
                  <?php
                  foreach ($this->bookings as $booking) {
                    if($booking->accepted == "1"){
                      $client = mysql_fetch_object(mysql_query("SELECT * FROM client WHERE id = '".$booking->client_id."'"));
                      print "<li><p>" . $client->name . "         " . $booking->partofday . "        " .  $booking->date ."<a href='" . $this->baseUrl() . "/administrator/bookings?remove=" . $booking->id . "'>        Verwijderen</a><a href='" . $this->baseUrl() . "/administrator/viewbooking?id=" . $booking->id ."'>                    Bekijk</a></p></li>";
                    }
                  }
                  ?>
                </ul>
              </article>
		</section>